#!/usr/bin/env node

const log=console.log;

log('CPU architecture',process.arch);
log('OS',process.platform);

log('\npid',process.pid);
log('exePath:',process.execPath);

const stdin=process.stdin;
stdin.on('data',()=>{


});
stdin.on('end',()=>{
    log('bye');

});

log('\nnodejs ver:',process.version);
log('login username:',process.getuid);
log('user group:',process.getgid());
log('pwd',process.cwd());

log('\nenv:',process.env);
log('\nlogin user:',process.env.USER);
log('host name:',process.env.HOSTNAME);


log('rss:',process.memoryUsage().rss);
log('heapTotal:',process.memoryUsage().heapTotal);
log('heapUsed:',process.memoryUsage.heapUsed);
log('external:',process.memoryUsage().external);
